<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
<style>
  ul{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-around; */
  }
  li{
    flex: none;
    width: 33%;
    text-align: center;
  }
</style>
</head>
<body>

  <div id='app'>
    <ul>
      <li v-for="film in films" :key="film.filmId">
        <h3>{{ film.name }}</h3>
        <img :src="film.poster" alt="">
      </li>
    </ul>
  </div>

<script src='https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js'></script>
<script src="./axios.js"></script>
<script>
  const app = new Vue({
    el: '#app'
    ,data: {
      films: []
    }
    ,methods: {
      fetchData(){
        axios.get('https://m.maizuo.com/gateway', {
          params: {
            cityId: 210300
            ,pageNum: 1
            ,pageSize: 50
            ,type: 1
            ,k: 5928337
          }
          ,headers: {
            'X-Client-Info': '{"a":"3000","ch":"1002","v":"5.0.4","e":"16080008422154677718220802","bc":"210300"}',
            'X-Host':'mall.film-ticket.film.list'
          }
        }).then( res=> {
          if(res.data.status === 0){
            this.films = res.data.data.films;
            console.log(this.films);
          }
        })
      }
    }
    ,created() {
      this.fetchData();
    }
  })
  
</script>
</body>
</html>